// AddDlg.cpp : implementation file
//

#include "stdafx.h"
#include "AdBlockerUI.h"
#include "AddDlg.h"


// CAddDlg dialog

IMPLEMENT_DYNAMIC(CAddDlg, CDialog)

CAddDlg::CAddDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CAddDlg::IDD, pParent)
{

}

CAddDlg::~CAddDlg()
{
}

void CAddDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//DDX_Control(pDX, IDC_EDIT1, m_hWnd);
	//DDX_Control(pDX, IDC_EDIT2, m_strWndTitle);
}


BEGIN_MESSAGE_MAP(CAddDlg, CDialog)
	ON_BN_CLICKED(IDOK, &CAddDlg::OnBnClickedOk)
END_MESSAGE_MAP()


// CAddDlg message handlers

void CAddDlg::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	UpdateData(FALSE);

	CString t;
	//GetDlgItem(IDC_EDIT1)->GetWindowText(t);
	//m_hWnd = atol(t.GetBuffer(0));
	GetDlgItem(IDC_EDIT2)->GetWindowText(t);
	m_strWndTitle = t;

	OnOK();
}

BOOL CAddDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// TODO:  Add extra initialization here
	GetDlgItem(IDC_EDIT2)->SetFocus();
	return FALSE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
